package xyz.zhouzhaodong.crm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import xyz.zhouzhaodong.crm.dto.MailDto;
import xyz.zhouzhaodong.crm.entity.Mail;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhouzhaodong
 * @since 2020-06-19
 */
public interface MailMapper extends BaseMapper<Mail> {

    /**
     * 根据用户id查询邮寄
     * @param mailDto
     * @param page
     * @return
     */
    IPage<MailDto> selectMailList(@Param("mailDto") MailDto mailDto, Page<MailDto> page);

}
